package blf.librarysystem.Dao;

import blf.librarysystem.Pojo.Admin;
import blf.librarysystem.Pojo.AdminExample;
import java.util.List;

import blf.librarysystem.Pojo.Reader;
import blf.librarysystem.Utils.Result;
import org.apache.ibatis.annotations.Param;

public interface AdminMapper {
    long countByExample(AdminExample example);

    int deleteByExample(AdminExample example);

    int insert(Admin record);

    int insertSelective(Admin record);

    List<Admin> selectByExample(AdminExample example);

    int updateByExampleSelective(@Param("record") Admin record, @Param("example") AdminExample example);

    int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);


    //自定义的数据库操作
    Admin login(String name, String pwd);

    Admin findByPrimaryKey(@Param("id") Integer id);
}